package io.adrainty.bolee.points.models.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.adrainty.bolee.framework.commons.basic.BaseBO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * <p>BusinessLogBO</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 业务收集
 * @since 2025/7/30 15:44:05
 */

@Data
@Schema(description = "业务收集BO")
@TableName(value = "business_log")
@EqualsAndHashCode(callSuper = true)
public class BusinessLogBO extends BaseBO {

    @Serial
    private static final long serialVersionUID = 6569256147340378010L;

    @Schema(description = "请求id")
    @TableField(value = "request_tid")
    public String requestTid;

    @Schema(description = "域名")
    @TableField(value = "host")
    public String host;

    @Schema(description = "ip地址")
    @TableField(value = "host_address")
    public String hostAddress;

    @Schema(description = "请求路径")
    @TableField(value = "request_uri")
    public String requestUri;

    @Schema(description = "请求方式")
    @TableField(value = "request_method")
    public String requestMethod;

    @Schema(description = "请求body")
    @TableField(value = "request_body")
    public String requestBody;

    @Schema(description = "应答body")
    @TableField(value = "response_body")
    public String responseBody;

    @Schema(description = "应答code")
    @TableField(value = "response_code")
    public String responseCode;

    @Schema(description = "应答msg")
    @TableField(value = "response_msg")
    public String responseMsg;

    @Schema(description = "用户")
    @TableField(value = "user_id")
    public String userId;

    @Schema(description = "用户名称")
    @TableField(value = "user_name")
    public String username;

    @Schema(description = "业务类型")
    @TableField(value = "business_type")
    public String businessType;

    @Schema(description = "设备号")
    @TableField(value = "device_number")
    public String deviceNumber;

    @Schema(description = "区域")
    @TableField(value = "region")
    public String region;


}
